// components/shift-day/index.js
import {ShowDay} from '../../lib/enum'
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    today_shift:String,
    name:String,
    today_overtime:String,
  },

  /**
   * 组件的初始数据
   */
  data: {
    today_week:null,
    today_date:null
  },

  attached:function(){
    let date = new Date()
    let td = date.getMonth()+1 +'月'+date.getDate()+'日'
    let tw = ShowDay[date.getDay()]
    this.setData({
      today_date:td,
      today_week:tw
    })
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})
